package com.hq.user.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hq.user.entity.SysUser;
import com.hq.user.mapper.SysUserMapper;
import com.hq.user.service.SysUserService;
import com.hq.user.utils.Base64Utils;
import com.hq.user.vo.SaveNewUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {

    @Override
    public boolean saveNewUser(SaveNewUser saveNewUser) {
        return baseMapper.saveNewUser(saveNewUser);
    }

    @Override
    public void saveSysUserRole(SaveNewUser saveNewUser) {
        baseMapper.saveSysUserRole(saveNewUser);
    }
}
